package com.lxy.seata.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @author lixinyang
 * @className: TAccountService
 * @description: TODO
 * @date 2022/05/02日  19:49
 */
@FeignClient(value = "seatatest-account")
public interface TAccountService {
    @PostMapping("/account/decrease")
    int decrease(@RequestParam("userId") Long userId, @RequestParam("money") BigDecimal money);
}
